app.controller('indexController' ,function($scope,$controller,indexService) {

    $controller('baseController', {$scope: $scope});

    /**
     * 获取用户名
     */
    $scope.loginName=function () {
        indexService.loginName()
            .success(
                function (res) {
                   $scope.loginName=res.loginName
                }
            )
    }
})